For more detailed instructions on how to use this code please see the included sample project files, or visit the relevant section of my website at http://www.users.globalnet.co.uk/~admoss.